//
//  TodayDetailTableViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TodayDetailTableViewCell.h"
#import "UIView+Frame.h"
#import "UIView+ImageView.h"
#import "UIView+Label.h"
#import "TAMacro.h"

@implementation TodayDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier

{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titleLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:14]];
        _titleLabel.textColor = [UIColor blackColor];
        _titleLabel.alpha = 0.5;
        [self.contentView addSubview:_titleLabel];
        _authorLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:14]];
        _authorLabel.textColor = [UIColor blackColor];
        _authorLabel.alpha = 0.5;
        [self.contentView addSubview:_authorLabel];
        _pubdateLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:16]];
        _pubdateLabel.textColor = [UIColor blackColor];
        _pubdateLabel.alpha = 0.5;
        _contentLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:16]];
        _contentLabel.numberOfLines = 0;
        [self.contentView addSubview:_contentLabel];
        _sourceLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:17]];
        _sourceLabel.numberOfLines = 0;
        [self.contentView addSubview:_sourceLabel];
        
        _view = [[UIView alloc] init];
        _view.backgroundColor = [UIColor blackColor];
        _view.alpha = 0.8;

        
       
    }
    return self;
}

- (void)layoutSubviews
{
    
    _titleLabel.frame = CGRectMake(5, 210, 150, 20);
    _sourceLabel.frame = CGRectMake(5, 230, SCREEN_WIDTH - 10, 60);
    _authorLabel.frame = CGRectMake(5, 290, 200, 20);
    _pubdateLabel.frame = CGRectMake(210, 290, SCREEN_WIDTH - 290, 20);
    _view.frame = CGRectMake(5, 300, SCREEN_WIDTH - 10, 2);
    _contentLabel.frame = CGRectMake(5, 310, SCREEN_WIDTH - 10, 500);

}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
